package com.yun2.bms.model;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;

import java.util.Date;

/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/5/11
 */

public class User {

    private final SimpleIntegerProperty id = new SimpleIntegerProperty();
    private final SimpleStringProperty loginName = new SimpleStringProperty("");
    private final SimpleStringProperty password = new SimpleStringProperty("");
    private final SimpleStringProperty userName = new SimpleStringProperty("");
    private final SimpleStringProperty gender = new SimpleStringProperty("");
    private final SimpleStringProperty phone = new SimpleStringProperty("");
    private final SimpleStringProperty email = new SimpleStringProperty("");
    private final SimpleStringProperty imgUrl = new SimpleStringProperty("");
    private final SimpleStringProperty role = new SimpleStringProperty("");
    private final SimpleIntegerProperty maxLendNumber = new SimpleIntegerProperty();
    private final SimpleIntegerProperty maxLendDays = new SimpleIntegerProperty();
    private final SimpleObjectProperty createDate= new SimpleObjectProperty();

    private final SimpleStringProperty genderCn = new SimpleStringProperty("");
    private final SimpleStringProperty roleCn = new SimpleStringProperty("");
    private final SimpleIntegerProperty myLendedNumber = new SimpleIntegerProperty();

    public User() {
    }

    public int getId() {
        return id.get();
    }

    public SimpleIntegerProperty idProperty() {
        return id;
    }

    public void setId(int id) {
        this.id.set(id);
    }

    public String getLoginName() {
        return loginName.get();
    }

    public SimpleStringProperty loginNameProperty() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName.set(loginName);
    }

    public String getPassword() {
        return password.get();
    }

    public SimpleStringProperty passwordProperty() {
        return password;
    }

    public void setPassword(String password) {
        this.password.set(password);
    }

    public String getUserName() {
        return userName.get();
    }

    public SimpleStringProperty userNameProperty() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName.set(userName);
    }

    public String getGender() {
        return gender.get();
    }

    public SimpleStringProperty genderProperty() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender.set(gender);
    }

    public String getPhone() {
        return phone.get();
    }

    public SimpleStringProperty phoneProperty() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone.set(phone);
    }

    public String getEmail() {
        return email.get();
    }

    public SimpleStringProperty emailProperty() {
        return email;
    }

    public void setEmail(String email) {
        this.email.set(email);
    }

    public String getImgUrl() {
        return imgUrl.get();
    }

    public SimpleStringProperty imgUrlProperty() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl.set(imgUrl);
    }

    public String getRole() {
        return role.get();
    }

    public SimpleStringProperty roleProperty() {
        return role;
    }

    public void setRole(String role) {
        this.role.set(role);
    }

    public int getMaxLendNumber() {
        return maxLendNumber.get();
    }

    public SimpleIntegerProperty maxLendNumberProperty() {
        return maxLendNumber;
    }

    public void setMaxLendNumber(int maxLendNumber) {
        this.maxLendNumber.set(maxLendNumber);
    }

    public int getMaxLendDays() {
        return maxLendDays.get();
    }

    public SimpleIntegerProperty maxLendDaysProperty() {
        return maxLendDays;
    }

    public void setMaxLendDays(int maxLendDays) {
        this.maxLendDays.set(maxLendDays);
    }

    public Object getCreateDate() {
        return createDate.get();
    }

    public SimpleObjectProperty createDateProperty() {
        return createDate;
    }

    public void setCreateDate(Object createDate) {
        this.createDate.set(createDate);
    }

    public String getGenderCn() {
        return genderCn.get();
    }

    public SimpleStringProperty genderCnProperty() {
        return genderCn;
    }

    public void setGenderCn(String genderCn) {
        this.genderCn.set(genderCn);
    }

    public String getRoleCn() {
        return roleCn.get();
    }

    public SimpleStringProperty roleCnProperty() {
        return roleCn;
    }

    public void setRoleCn(String roleCn) {
        this.roleCn.set(roleCn);
    }

    public int getMyLendedNumber() {
        return myLendedNumber.get();
    }

    public SimpleIntegerProperty myLendedNumberProperty() {
        return myLendedNumber;
    }

    public void setMyLendedNumber(int myLendedNumber) {
        this.myLendedNumber.set(myLendedNumber);
    }
}
